package com.itheima.sky.service;

import com.itheima.sky.pojo.User;

/**
 * @Description UserController
 * @Author jiangning
 * @Date 2024-06-27
 */
public interface UserService {
    /**
     * 校验短信验证码是否有效
     * @param phone
     * @param code
     */
    void verifySmsCode(String phone,String code);

    /**
     * 生成短信验证码
     */
    String generateSmsCode(String phone);

    Long getUserIdByPhone(String phone);

    Long insertUser(User user);
}
